// 日志上传时候需要的参数
export interface LogUploadForm {
    id?: string | number; // 表示修改日志的时候
    subject_id: string | number;
    staticIds: number[];
    context: string;
    preText: string;
}

// 日志的信息
export interface LogPreview {
    id: number;
    user: logUserInfo;
    preView?: string;
    uploadTime: string;
    lastEditTime: string;
}

export interface logUserInfo {
    id: number;
    name: string;
    avatar: string;
    authority: string;
}

export interface LogListForm {
    subject_id: number | string;
    pageNo: number;
    limit: number;
}

export type LogListResponse = List<LogPreview>;
export type LogListResponseData = ResponseData<LogListResponse>;

// 日志详情的返回结果
export interface LogDetailResponse {
    id: number;
    context: string;
    resource: Resource[];
}
export type LogDetailResponseData = ResponseData<LogDetailResponse>;
